package com.eleven.framework.configure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "eleven.web")
class ElevenRestProperties {

  private ElevenOpenapiProperties openapi = new ElevenOpenapiProperties();

  @Data
  public static class ElevenOpenapiProperties {
    private String title;
    private String version;
    private String description;
    private String termsOfService;

    private Contact contact = new Contact();
    private License license = new License();

    @Data
    public static class Contact {
      private String name;
      private String url;
      private String email;
    }

    @Data
    public static class License {
      private String name;
      private String url;
    }
  }
}
